package com.test;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;
import java.util.Set;

@RestController
@RequestMapping("/test")
public class testTrousers {
    @Resource
    private Map<String,Trousers> trousersMap;

    @GetMapping
    public void a(){
        Set<String> strings = trousersMap.keySet();
        for (String string : strings) {
            System.out.println(string);
        }
    }
}
